GtkStyleContext: Fix compiler warning.
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 4 May 2010 17:46:58 +0000 (19:46 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:37:09 +0000 (15:37 +0100)
gtk/gtkstylecontext.c

index d0f95cf98932ba86d40f3563386496fcf8cced4e..b12fda318ca34e01930ce4416d7eab1c00f56e4b 100644 (file)
@@ -488,11 +488,13 @@ gtk_style_context_list_child_classes (GtkStyleContext *context)
   while (link)
     {
       GtkChildClass *link_class;
+      const gchar *child_class;
 
       link_class = link->data;
-      classes = g_list_prepend (classes,
-                                g_quark_to_string (link_class->class_quark));
       link = link->next;
+
+      child_class = g_quark_to_string (link_class->class_quark);
+      classes = g_list_prepend (classes, child_class);
     }
 
   return classes;